package com.iurac.dao;

import com.iurac.domain.DicType;
import com.iurac.domain.DicValue;
import com.iurac.vo.DictionaryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DictionaryDao {
    List<DicType> getDicType();

    List<DicValue> getDicValueByTypeId(@Param("id") String id);

    List<DictionaryVo> getDictionaryByCondition();

    int deleteDicValueById(@Param("valueId") String valueId);

    int deleteDicTypeById(@Param("typeId") String typeId);

    String getDicTypeIdByVid(@Param("valueId") String valueId);

    int getDicValueCountByTypeId(@Param("typeId") String typeId);

    int saveDicType(DicType dicType);

    String getOrderNoByTypeId(@Param("typeId") String typeId);

    int saveDicValue(DicValue dicValue);

    int updateDicValue(DicValue dicValue);
}
